package com.qingrongby.shop.api.v1;

import com.qingrongby.shop.core.LocalUser;
import com.qingrongby.shop.core.interceptors.ScopeLevel;
import com.qingrongby.shop.dto.OrderdDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @CLASSNAME OrderController
 * @DESCRIPTION TODO
 * @AUTHOR hzp
 * @DATE 2020/8/2
 * @VERSION 1.0
 **/
@RestController
@Api("订单模板")
@RequestMapping("/api/v1/Order")
@Validated
public class OrderController {

    @ScopeLevel(2)
    @ApiOperation("下订单")
    @PostMapping("/placeOrder")
    public void placeOrder(@RequestBody OrderdDTO orderdDTO){
        LocalUser.getMap();
    }


}

